package com.yungu.swift.order.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.service.impl.BaseServiceImpl;
import com.yungu.swift.order.dao.OrderOperateLogMapper;
import com.yungu.swift.order.model.dto.OrderOperateLogDto;
import com.yungu.swift.order.service.OrderOperateLogService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


/**
 * Description：订单操作日志（生命周期）
 * OrderOperateLogServiceImpl
 **/

@Service
public class OrderOperateLogServiceImpl extends BaseServiceImpl<OrderOperateLogDto> implements OrderOperateLogService {

    @Autowired
    private OrderOperateLogMapper orderOperateLogMapper;

    @Override
    protected IMapper<OrderOperateLogDto> getMapper() {
        return orderOperateLogMapper;
    }

    @Override
    public ResponseData<List<OrderOperateLogDto>> listReassignAndAdjust(String orderUuid) {
        return ResponseData.buildSuccessResponse(orderOperateLogMapper.listReassignAndAdjust(orderUuid));
    }
}